package cn.class2.demo8.ysz

/**
  * Created by lzd on 2018/11/28.
  */

class DemoEnd {}

class Demo3 {
  def show(string: String): String = {
    var res = ""
    string.split("").foreach(res+=_+"-")
    return res
  }
}

object Demo3 {
  def main(args: Array[String]): Unit = {
    import MyPreDef._

    val show= new DemoEnd().show("hello")
    println(show)
  }
}
